import useApiFetch from '~/hooks/useApiFetch';
import type { StockSearchItem } from './dashboard';

// 获取每日推荐
export const queryDailyRecommend = (params: { day: string; type: 'hot' | 'minor' }) => {
  return useApiFetch<ResOptions<StockSearchItem[]>>('/stock/dailyRecommend', {
    method: 'GET',
    params,
  });
};
